<div class="ajax_box">
  <h1><?php echo $event->getDescription() ?></h1>
  <div class="content">
    <h2>Categoria: </h2>
  <?php echo $event->getBolaoCategory()->getName() ?>
  <?php
     if ($event->hasBolaoSubcategory())
       echo ' ('.$event->getBolaoSubcategory()->getName().')';
  ?>
    <br/>
    <h2>Local: </h2><?php echo $event->getLocation() ?><br/>
    <h2>In&iacute;cio: </h2>
  <?php
     echo $event->getStartDate('d/m/Y');
     if ($event->getStartTime('Hi') > 0)
       echo ' '.$event->getStartTime('H:i');
  ?>
  <?php if ($event->hasEndDate()) : ?>
    <h2>T&eacute;rmino: </h2>
    <?php
       echo $event->getEndDate('d/m/Y');
       if ($event->getEndTime('Hi') > 0)
         echo ' '.$event->getEndTime('H:i');
    ?>
  <?php endif; ?>
  </div>
  <?php if($sf_user->isAuthenticated() && $event->canEdit($sf_user)) : ?>
  <div class="buttons">
    <a class="popup_btn" href="<?php echo url_for('event_edit',$event) ?>">Editar</a>
  <div>
  <?php endif; ?>
</div>
